<?php include template("manage_header");?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="partner">
	<div class="dashboard" id="dashboard">
		<ul><?php echo mcurrent_system('email'); ?></ul>
	</div>
	<div id="content" class="clear mainwide">
        <div class="clear box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head"><h2>Configurações de email</h2></div>
                <div class="sect">
                    <form method="post">
						<div class="wholetip clear"><h3>1.Configuração da mala-direta</h3></div>
						<div class="field">
							<label>Forma de envio</label>
							<div style="margin-top:5px;" id="mail-zone-div"><input type="radio" name="mail[mail]" value="smtp" <?php echo $INI['mail']['mail']!='mail'?'checked':''; ?> />&nbsp;SMTP&nbsp;<input type="radio" name="mail[mail]" value='mail' <?php echo $INI['mail']['mail']=='mail'?'checked':''; ?> />&nbsp;PHP MAIL&nbsp;</div>
						</div>
						<div id="mail-zone-smtp" style="display:<?php echo $INI['mail']['mail']!='mail'?'block':'none'; ?>;">
                        <div class="field">
                            <label>Servidor SMTP</label>
                            <input type="text" size="30" name="mail[host]" class="f-input" value="<?php echo $INI['mail']['host']; ?>" style="width:200px;"/><span class="inputtip">Algo como: smtp.seusite.com.br</span>
                        </div>
                        <div class="field">
                            <label>Porta SMTP</label>
                            <input type="text" size="30" name="mail[port]" class="number" value="<?php echo $INI['mail']['port']; ?>"/><span class="inputtip">Normalmente porta 25,ou se for SSL porta 465</span>
                        </div>
                        <div class="field">
                            <label>SSL </label>
                            <input type="text" size="30" name="mail[ssl]" class="number" value="<?php echo $INI['mail']['ssl']; ?>"/>
                            <span class="inputtip">false, ssl, tls * [SMTP 25 port selection false, 465 and other ports option ssl]</span>
                        </div>
                        <div class="field">
                            <label>Username</label>
                            <input type="text" size="30" name="mail[user]" class="f-input" value="<?php echo $INI['mail']['user']; ?>" style="width:200px;"/><span class="inputtip">ex: email@seusite.com.br</span>
                        </div>
                        <div class="field">
                            <label>Password</label>
                            <input type="password" size="30" name="mail[pass]" class="f-input" value="<?php echo $INI['mail']['pass']; ?>" style="width:200px;"/><span class="inputtip">Senha do email</span>
                        </div>
						</div>
                        <div class="field">
                            <label>Mail From</label>
                            <input type="text" size="30" name="mail[from]" class="f-input" value="<?php echo $INI['mail']['from']; ?>" style="width:200px;"/><span class="inputtip">Email que vai ser mostrado no envio de email</span>
                        </div>
                        <div class="field">
                            <label>Reply To</label>
                            <input type="text" size="30" name="mail[reply]" class="f-input" value="<?php echo $INI['mail']['reply']; ?>" style="width:200px;" /><span class="inputtip">Email que receberá respostas</span>
                        </div>
                        <div class="field">
                            <label>Codificação</label>
                            <input type="text" size="30" name="mail[encoding]" class="f-input" value="<?php echo $INI['mail']['encoding']; ?>" style="width:200px; text-transform:uppercase;"/><span class="inputtip">Codificação: UTF-8, GBK, BIG5 Etc</span>
                        </div>
                        <div class="field">
                            <label>Frequência</label>
                            <input type="text" size="30" name="mail[interval]" class="number" value="<?php echo abs(intval($INI['mail']['interval'])); ?>"/>
                            <span class="inputtip">Frequencia de envio de emails em segundos pode escolher entre 2-5</span>
                        </div>

						<div class="wholetip clear"><h3>2.Configurações de Inscrição (informações de contato no email de inscrição)</h3></div>
                        <div class="field">
                            <label>telefone</label>
                            <input type="text" size="30" name="mail[helpphone]" class="f-input" value="<?php echo $INI['mail']['helpphone']; ?>"/>
                        </div>
                        <div class="field">
                            <label>Email</label>
                            <input type="text" size="30" name="mail[helpemail]" class="f-input" value="<?php echo $INI['mail']['helpemail']; ?>"/>
                        </div>

                        <div class="act">
                            <input type="submit" value="Salvar" name="commit" class="formbutton"/>
                        </div>
                    </form>
                </div>
            </div>
            <div class="box-bottom"></div>
        </div>
	</div>

<div id="sidebar">
</div>

</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<?php include template("manage_footer");?>
